
<div id="sanpham_right">
           	    <div id="title_right">
            		<p id="title_right_left"></p>
            		<div id="title_right_center">
            		  <p class="chu_title">DANH SÁCH NHÀ CUNG CẤP </p>
            		</div>
           			<p id="title_right_right"></p>
             	</div>
                <div id="noidung_right">
<?php
	if($data)
	{
			echo '<table width = "590" cellpadding = "2" cellspacing = "2" border = "0" align = "center" bgcolor = "#D4D0C8">';
			echo '<tr class = "list"> 
				<td width = "150" valign = "top"> <div align = "center"> <b> Tên nhà cung cấp </b> </div> </td>
				<td width = "80" valign = "top"> <div align = "center"> <img src="public/images/b_edit.png"/> Sửa</div> </td>
				<td width = "80" valign = "top"> <div align = "center"> <img src="public/images/b_drop.png"/> Xóa</div> </td>
			</tr>';
		foreach ($data['list'] as $key => $value) {
			echo '<tr> 
				<td width = "150" valign = "top"> <div align = "center">'.$value['TenNCC'].' </div> </td>
				<td width = "80" valign = "top"> <div align = "center"> <a href = "admin.php?mod=updatencc&ma='.$value['MaNCC'].'"> Sửa </a></div> </td>
				<td width = "80" valign = "top"> <div align = "center"> <a href = "admin.php?mod=delncc&ma='.$value['MaNCC'].'"> Xóa </a> </div> </td>
				</tr>';
			
		}
		echo '</table>';
	}
?>
</div>
</div>
<?php
//Xuat phan trang 
//	 echo "<p align='center'>";
//	 echo $pagelist;
//	 echo "</p>";
?>